export default {
    GuessLike: function(page) {
        return $.ajax({
            type: "get",
            url: "https://www.ymatou.com/guess/api/getGuessLikeProducts",
            dataType: "jsonp",
            data: {
                callback: "jQuery112406315122115631657_" + Date.now(),
                pageIndex: page,
                pageSize: 20,
                _: Date.now(),
            }
        });
    },
    MustBuy: function(page) {
        return $.ajax({
            url: "http://localhost:8888/ymt",
            data: {
                pagetIndex: page
            }
        })
    },
    ProductDescription: function(id) {
        return $.ajax({
            url: "http://localhost:8888/description",
            data: {
                productid: id,
                _: Date.now()
            }
        })
    },
    Recommend: function(id, index) {
        return $.ajax({
            url: "http://localhost:8888/recommend",
            data: {
                pageindex: index,
                pagesize: 15,
                productid: id,
                _: Date.now()
            }
        })
    }
}

// https://www.ymatou.com/product/api/GetGuessLikeList?pageindex=1&pagesize=6&productid=p1576972&_=1563865689017